﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example08_CSharp
{
    interface IA
    {
       void m1();
    }
    class B
    {
        public
        void m2()
        {
            Console.WriteLine("Hello B");
        }
    }
     class C:B, IA
        {
         public
            void m1()
            {
                Console.WriteLine("Interface A");
            }
             void m3()
            {
                Console.WriteLine("Hello");
            }
        }
    
   class program
   {
        static void Main(string[] args)
        {
            IA a = new C();
            a.m1();
            B b = new C();
            b.m2();
        }
    }
}
